using MediatR;
using RBAC.ErrorCode;

namespace RBAC.Read.Api.Application.Command.ERP.SalesManagement.H
{
    /// <summary>
    /// 销售订单综合查询（支持条件与无条件）
    /// </summary>
    public class GetSalesOrderSummaryCommand : IRequest<APIResult<GetSalesOrderSummaryDto>>
    {
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 销售订单号（模糊）
        /// </summary>
        public string? SalesOrderNumber { get; set; }
        /// <summary>
        /// 客户名称（模糊）
        /// </summary>
        public string? CustomerName { get; set; }
        /// <summary>
        /// 销售员（模糊）
        /// </summary>
        public string? SalesPerson { get; set; }
        /// <summary>
        /// 销售类型（等值或模糊，按需求）
        /// </summary>
        public string? SalesType { get; set; }
        /// <summary>
        /// 物料名称（模糊）
        /// </summary>
        public string? MaterialName { get; set; }
    }
}
